#!/bin/bash
#
res=1
while  [ $res != 0 ]
do
   sleep 1
   curl localhost:80
   res=$?
   echo $res
done

exit 0